package com.bbs.toutiao.service.client;

import com.bbs.toutiao.vo.client.AddCommentVo;
import com.bbs.toutiao.vo.client.CommentClinetVo;
import com.bbs.toutiao.vo.client.GetCommentByUserIdVo;
import com.bbs.toutiao.vo.comm.PageVo;
import com.bbs.toutiao.vo.comment.CommentPageRequestVo;

import java.util.List;
import java.util.Map;

public interface CommentEditService {

    //分页查询评论
    PageVo<CommentClinetVo> findByCommentPageClient(CommentPageRequestVo requestVo);

    //点赞
    boolean addCountByCommentId(Map<String,Integer> comment);

    //新增评论
    int addComment(AddCommentVo commentVo);

    //分页查询我的评论
    Map<String,Object> getCommentByUserIdPage(CommentPageRequestVo vo);

    //删除评论，评论id，父评论id
    boolean deleteComment(Integer id,Integer par);
}
